message(STATUS "UEStudio 构建...")
include_directories(
    .
    ./include
    ./include/tinyxml
    ./sdk
    ./sdk/wxscintilla/include
    ./sdk/wxscintilla/src
    ./sdk/wxscintilla/src/scintilla/include
    ./sdk/wxscintilla/src/scintilla/src
    ./plugins/astyle
    ./plugins/astyle/astyle
    ./plugins/configmanager
    ./plugins/abbreviations
    ./plugins/contrib/lib_finder
    ${wxWidgets_INCLUDE_DIRS}
)
file(GLOB_RECURSE ALL_SOURCES "*.cpp" "*.c" "sdk/*.cpp" "src/*.cpp" "base/*.cpp" "plugins/*.cpp")
list(FILTER ALL_SOURCES EXCLUDE REGEX "plugins/CBUELogin/")
list(FILTER ALL_SOURCES EXCLUDE REGEX "plugins/CBUE_Login/")
list(FILTER ALL_SOURCES EXCLUDE REGEX "plugins/QT")
list(FILTER ALL_SOURCES EXCLUDE REGEX "plugins/CMakeForCodeBlocks/")
list(FILTER ALL_SOURCES EXCLUDE REGEX "build_tools/")
list(FILTER ALL_SOURCES EXCLUDE REGEX "tools/")
add_executable(uestudio ${ALL_SOURCES})
target_link_libraries(uestudio ${wxWidgets_LIBRARIES})
set_target_properties(uestudio PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
